package com.aynu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

/**
 * @author mj
 * @version 1.0
 * @date 2021/3/9 22:15
 */
//二级分类
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Catalog2Vo {
    /**
     * 1级父分类id
     */
    private String catalogId;

    /**
     * 三级子分类
     */
    private List<Catalog3Vo> catalog3List;

    private String id;

    private String name;

    //三级分类
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class Catalog3Vo{
        /**
         * 父分级分类
         */
        private String catalog2Id;

        private String id;

        private String name;
    }
}
